package br.com.dallas.transportador.javabean;

import java.io.Serializable;

import br.com.dallas.util.javabean.EntidadeBean;

public class TransportadorBean extends EntidadeBean implements Serializable
{
	private static final long serialVersionUID = Long.MAX_VALUE;
	private String razao;
	
	public TransportadorBean()
	{
		
	}

	public String getRazao()
	{
		return razao;
	}

	public void setRazao(String razao)
	{
		this.razao = razao;
	}

	@Override
	public int hashCode()
	{
		final int prime = 31;
		int result = 1;
		result = prime * result + ((razao == null) ? 0 : razao.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj)
	{
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TransportadorBean other = (TransportadorBean) obj;
		if (razao == null)
		{
			if (other.razao != null)
				return false;
		}
		else if (!razao.equals(other.razao))
			return false;
		return true;
	}
	
	
}
